package com.fourth.service.impl;

import com.fourth.dao.UBBusinessMapper;
import com.fourth.service.UBBusinessServcie;
import com.fourth.vo.UBBusinessVo;
import com.ljx.vo.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 蒋一飞
 * @adte 2023/3/2 11:46
 */
@Service
public class UBBusinessServiceImpl  implements UBBusinessServcie {

    @Resource
    private   UBBusinessMapper ubBusinessMapper;

    /***
     * 查询首页商家信息
     * @return
     */
    @Override
    public Result<UBBusinessVo> getBusiness() {
        List<UBBusinessVo> businessVoList = ubBusinessMapper.getBusinessVoList();
        return new Result(2000,"查询成功",businessVoList);
    }
}
